import request from "@/utils/request";
export default {
  // getCategory1 获取一级列表  get  /admin/product/getCategory1
  getCategory1(){
    return request.get('admin/product/getCategory1')
  },

//getCategory2 根据一级id获取2级列表  GET /admin/product/getCategory2/{category1Id}
  getCategory2(category1Id){
    return request.get(`/admin/product/getCategory2/${category1Id}`)
  },

//GET /admin/product/getCategory3/{category2Id}
//getCategory3
  getCategory3(category2Id){
    return request.get(`/admin/product/getCategory3/${category2Id}`)
  }
}


